package com.ecloud.openapi.security.vo;

import java.time.LocalDateTime;

import com.ecloud.common.base.model.BaseVo;
import com.ecloud.common.base.translate.AutoTranslate;
import com.ecloud.common.base.translate.TranslateSource;

import lombok.Getter;
import lombok.Setter;

/**
 * 机构菜单表 VO模型
 *
 * @author LiuGangQiang Create in 2021/07/04
 */
@Getter
@Setter
public class BaseMenuVo extends BaseVo<String> {
    private static final long serialVersionUID = 1L;
    /* 父级ID */
    private String pid;
    /* 父级菜单名称 扩展 */
    private String pname;
    /* 菜单名 */
    @AutoTranslate(type = "menu_name", source = TranslateSource.TRANSLATE)
    private String name;
    /* 菜单编码 */
    @AutoTranslate(type = "menu_code", source = TranslateSource.DICT)
    private String code;
    /* 类型 0：菜单 1：按钮 */
    private Integer type;
    /* 排序 */
    private Integer sort;
    /* 是否激活 */
    private Boolean enabled;
    /* 菜单图标 */
    private String icon;
    /* 备注 */
    private String remark;
    /* 修改时间 */
    private LocalDateTime updateTime;
    /* 创建时间 */
    private LocalDateTime createTime;
}
